<?php
/**
 * Created by PhpStorm.
 * User: Edward
 * Date: 2019/5/30
 * Time: 14:18
 */

namespace app\Validate;


class AddressValidate extends BaseValidate {
    protected $rule = [
        'linkman'=>'require',
        'contact_number'=>'require|number',
        'address'=>'require',
        'province_id'=>'require|number',
        'city_id'=>'require|number',
        'area_id'=>'require|number',
        'province'=>'require',
        'city'=>'require',
        'area'=>'require',
        'is_default'=>'require|number',
    ];
    protected $message =  [
        'linkman'=>'联系人',
        'contact_number'=>'联系电话',
        'address'=>'详细地址',
        'province_id'=>'省id',
        'city_id'=>'市id',
        'area_id'=>'区id',
        'province'=>'省名称',
        'city'=>'市名称',
        'area'=>'区名称',
        'is_default'=>'默认地址的状态',
    ];
}